package com.turing.procedure.model.domain.task;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.turing.orm.model.domain.common.BaseDo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Description 产品合同任务表
 * @Author lcy
 * @Date 2021-06-22
 */
@ApiModel(value = "产品合同任务表")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder(toBuilder = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ProductTask extends BaseDo<ProductTask> {

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "任务名称-文件名")
    @TableField("task_name")
    private String taskName;

    @ApiModelProperty(value = "子场景任务id")
    @TableField("task_sn")
    private String taskSn;

    @ApiModelProperty(value = "子场景id")
    @TableField("template_id")
    private String templateId;

    @ApiModelProperty(value = "子场景名称")
    @TableField("template_name")
    private String templateName;

    @ApiModelProperty(value = "任务状态，0-未完成 1-已完成")
    @TableField("status")
    private Integer status;

    @Override
    protected Serializable pkVal(){
        return this.id;
    }
}

